<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>{%$web_name%}</title>
<meta name="description" content="{%$web_description%}">
<meta name="keywords" content="{%$web_keywords%}">
<link href="{%$URL%}style.css" rel="stylesheet" type="text/css">
<link href="{%$URL%}mx.ico" rel="shortcut icon"/>
<script src="{%$URL%}jquery-1.7.1.min.js"></script>
<script src="{%$URL%}defalut.js"></script>
<script type="text/javascript">
//验证密码和确认密码
function check_psw(){
	var psw = $("#lc_password").val();
	var psw2 = $("#lc_password2").val();
	if(psw){
		if(psw!==psw2){
			$("#reset_psw2").text("亲，两次输入的密码不相同！");
		}else{
			$("#reset_psw2").text("亲，输入正确！");
			}
		}
	}
function check_reset(){
	var user = $("#user").val();
	var key = $("#key").val();
	var email = $("#email").val();
	var pwd = $("#lc_password").val();
	var rpwd = $("#lc_password2").val();
	var yzm = $("#yzm").val();
	if(!user || !key || !email){
		msg_tips("亲，链接已失效！","index.php?p=user");
		return false;
		}
	if(!pwd){
		msg_tips("亲，请输入重置密码！","");
		return false;
		}
	if(!rpwd){
		msg_tips("亲，请输入确认密码！！","");
		return false;
		}
	if(pwd !== rpwd){
		msg_tips("亲，两次密码输入不相同！","");
		return false;
		}
	if(!yzm){
		msg_tips("亲，验证码不能为空！","");
		return false;
		}
	}
</script>
</head>
<body>
<div id="body">{%include file='head.htm'%}
  <div id="middle">
    <div id="left">
      <div id="type">
        <div class="title">
          <h1>栏目分类</h1>
        </div>
        <ul>
          <li><a href="user.html">会员信息</a></li>
          <li><a href="shoppingcart_list.html">购物车</a></li>
          <li><a href="dingdan_list.html">订单管理</a></li>
          <li><a href="user_zt.html">高级会员</a></li>
          <li><a href="action-user_exit.html">退出会员</a></li>
        </ul>
      </div>
      <!-- type --></div>
    <!-- left -->
    <div id="right">
      <div class="title">
        <h1>会员重置密码</h1>
        <h3><a href="index.html">首页</a> > 会员中心</h3>
      </div>
      <div id="con">
        <form action="action-user_resetpwd.html" method="post" onSubmit="return check_reset()">
        <input name="user" id="user" type="hidden" value="{%$smarty.get.user%}">
        <input name="key" id="key" type="hidden" value="{%$smarty.get.key%}">
        <input name="email" id="email" type="hidden" value="{%$smarty.get.email%}">
          <ul id="user_dl">
            <li>密&nbsp;&nbsp;&nbsp;&nbsp;码：
              <input name="lc_password" type="password" required id="lc_password" /></li>
            <li>确认密码：
              <input name="lc_password2" type="password" required id="lc_password2" onBlur="check_psw()" />
              <span id="reset_psw2"></span></li>
            <li>验&nbsp;证&nbsp;码：
              <input name="yzm" type="text" required id="yzm" style="width:100px">
              <img src="action-imagecode.html" alt="看不清楚，换一张" title="看不清楚，换一张" align="absmiddle" style="cursor:pointer" onClick="newgdcode(this,this.src)"> <span id="Ryzm"></span> </li>
            <li>
              <input type="submit" style="width:80px; height:25px; border:none; cursor:pointer" value="重置密码">
              </li>
          </ul>
        </form>
      </div>
    </div>
    <!-- right -->
    <div class="clear"></div>
  </div>
  {%include file='bot.htm'%}</div>
<!-- body --> 
<br>
<br>
</body>
</html>
